/*
  学习目标：创建泛型函数的第二种写法-同时指定
*/

// 语法:
type XxxFn = <T>(a: T) => T;

const test: XxxFn = (a) => {
  return a;
};

// 调用上
let res0 = test<string>('1');
let res1 = test('1');
let res2 = test(2);
let res3 = test(false);
let res4 = test([2]);
